package app.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import app.dao.FixOrderStatusDao;
import app.domain.FixOrderStatus;
import app.service.FixOrderStatusService;

@Service
public class FixOrderStatusServiceImpl implements FixOrderStatusService{
    @Autowired
    private FixOrderStatusDao fixOrderStatusDao;
	@Override
	public void addStatusInfo(FixOrderStatus fixOrderStatus) {
		fixOrderStatusDao.add(fixOrderStatus);
	}
	@Override
	public List<FixOrderStatus> getStatusInfo(int fixOrderId) {
		return fixOrderStatusDao.list(fixOrderId);
	}
	@Override
	public List<FixOrderStatus> getByAccount(int accountId) {
		return fixOrderStatusDao.getByAccount(accountId);
	}
	@Override
	public List<FixOrderStatus> listAll() {
		return fixOrderStatusDao.getAll();
	}

}
